﻿<Window x:Class="IRongs.Wbt.Desktop.UI.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:toolkit="http://schemas.microsoft.com/wpf/2008/toolkit" 
        Title="微博通" Height="600" AllowDrop="True" Background="#E6F5ECEC" WindowStyle="ThreeDBorderWindow" MinWidth="350" MinHeight="500" Icon="/wbt;component/nlf.ico">
    
    <Grid>
        
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="350"/>
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
        
        <Grid Grid.Column="1" Grid.Row="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="35"></RowDefinition>
                <RowDefinition Height="*"></RowDefinition>
            </Grid.RowDefinitions>

            <WrapPanel Grid.Row="0" Grid.Column="0">
                <Button Content="微博" Style="{StaticResource MainControlButton}" />
                <Button Content="刷新" Style="{StaticResource MainControlButton}" />
                <TextBox x:Name="textSearchText" Width="120" Height="30" Margin="2"/>
                <Button Content="搜索" Style="{StaticResource MainControlButton}" />
                <Button Content="设置" Style="{StaticResource MainControlButton}" />
            </WrapPanel>

            <TabControl Grid.Row="1" Grid.Column="0">
                <TabItem Header="首页">
                    <toolkit:DataGrid Height="Auto" Name="dataGridPublicLine" Width="Auto">
                        <toolkit:DataGrid.HeadersVisibility>None</toolkit:DataGrid.HeadersVisibility>
                        <toolkit:DataGrid.AlternatingRowBackground>Red</toolkit:DataGrid.AlternatingRowBackground>
                        <toolkit:DataGrid.AutoGenerateColumns>false</toolkit:DataGrid.AutoGenerateColumns>
                        <toolkit:DataGrid.CanUserAddRows>false</toolkit:DataGrid.CanUserAddRows>
                        <toolkit:DataGrid.CanUserDeleteRows>false</toolkit:DataGrid.CanUserDeleteRows>
                        <toolkit:DataGrid.CanUserReorderColumns>false</toolkit:DataGrid.CanUserReorderColumns>
                        <toolkit:DataGrid.CanUserResizeColumns>false</toolkit:DataGrid.CanUserResizeColumns>
                        <toolkit:DataGrid.CanUserResizeRows>false</toolkit:DataGrid.CanUserResizeRows>
                        <toolkit:DataGrid.CanUserSortColumns>false</toolkit:DataGrid.CanUserSortColumns>
                        <toolkit:DataGrid.Columns>
                            <toolkit:DataGridTemplateColumn>
                                <toolkit:DataGridTemplateColumn.CellTemplate>
                                    <DataTemplate>
                                        <TextBlock>
                                        <Image Source="pack://application:,,,/wbt;component/nlf.ico"/>
                                        <TextBlock Text="{Binding Path=Name}"/>
                                    </TextBlock>
                                    </DataTemplate>
                                </toolkit:DataGridTemplateColumn.CellTemplate>
                            </toolkit:DataGridTemplateColumn>
                            <toolkit:DataGridTextColumn Binding="{Binding Path=Description}" />
                        </toolkit:DataGrid.Columns>
                    </toolkit:DataGrid>
                </TabItem>
                <TabItem Header="我的微博" />
                <TabItem Header="@我" />
                <TabItem Header="私信" />
                <TabItem IsEnabled="False" />
            </TabControl>

        </Grid>
    </Grid>
</Window>
